<div id="mainContent">
      <div id="sidebar">
          <div class="boxes">
              <h2>Popular Posts</h2>
              <ul>
                 <li><a href="#">Home</a></li>
                 <li><a href="#">About</a></li>
                 <li><a href="#">Clients</a></li>
                 <li><a href="#">Contact Us</a></li>
               
              </ul>
          </div><!--End .boxes-->
          <div class="boxes">
          	<h2>Random Posts</h2>
            <ul>
			<?php
			$randompost = new WP_Query();
			$randompost->query('showposts=3&orderby=rand');
			while($randompost->have_posts()) : $randompost->the_post();
			?>
            <li>
            <?php $randomThumb = get_post_meta($post->ID,'thumbnail',true);?>
			<h1><a href="<?php the_permalink();?>"><img src="<?php bloginfo('stylesheet_directory')?>/timthumb.php?src=<?php echo $randomThumb ?>&amp;h=50&amp;w=50&amp;zc=1" />
			<?php the_title();?></a></h1>
            <div style="float:left;"><?php the_content_rss('', false,'',20);?></div>
            </li>	
            <?php endwhile;?>
            </ul>
          </div><!--End .boxes-->
         <?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar()):?>
         	
         <?php endif;?>
	</div><!--End #sidebar-->
    
    
   
    